package com.example.demo;

import org.springframework.boot.autoconfigure.SpringBootApplication;

import org.apache.commons.codec.digest.DigestUtils;

import java.security.NoSuchAlgorithmException;


@SpringBootApplication
public class DemoApplication {

	public static void main(String[] args) throws NoSuchAlgorithmException {
//		SpringApplication.run(DemoApplication.class, args);
		String plainText = "return redis.call('get', KEYS[1])";

		// 获取指定摘要算法的messageDigest对象
		String cipherText = DigestUtils.sha1Hex(plainText);
		System.out.println("\u4f18\u79c0");
	}

}
